package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.PushManageTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 刘国航
 * @desc
 * @since 2024/6/14 16:01
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_push")
public class Push extends SuperEntity implements Serializable {

    /**
     * 推送标题
     */
    private String pushTitle;

    /**
     * 推送内容
     */
    private String pushContent;

    /**
     * 推送图标
     */
    private String pushIcon;

    /**
     * 推送类型
     */
    private PushManageTypeEnum pushType;

    /**
     * 是否开启定时推送
     */
    private Boolean enableSchedulePush;

    /**
     * 设置定时推送时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date schedulePushTime;

    /**
     * 是否已推送
     */
    private Boolean isPushed;

    /**
     * 推送时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date pushedTime;

    /**
     * 状态 是否上架
     */
    private Boolean status;

}
